<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />
  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />
  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div class="dokuwiki export">
<div class="table sectionedit1"><table class="inline">
	<tr class="row0">
		<td class="col0 leftalign"> « <a href="geda-gschem_ug-slots.html" class="wikilink1" title="geda-gschem_ug-slots.html">Slots and slotting</a>  </td><td class="col1 centeralign">  <strong><a href="geda-gschem_ug.html" class="wikilink1" title="geda-gschem_ug.html">gEDA gschem User Guide</a></strong>  </td><td class="col2 rightalign">  <a href="geda-gschem_ug-hierarchy.html" class="wikilink1" title="geda-gschem_ug-hierarchy.html">Hierarchy</a> » </td>
	</tr>
</table></div>
<!-- EDIT1 TABLE [1-107] -->
<h2 class="sectionedit2"><a name="autonumbering" id="autonumbering">Autonumbering</a></h2>
<div class="level2">

<p>
It is often useful to automatically number <a href="geda-gschem_ug-attributes.html" class="wikilink1" title="geda-gschem_ug-attributes.html">attributes</a> (for example, to set ”<code>pinseq=</code>” attributes in bulk when editing a symbol, or to set components&#039; ”<code>refdes=</code>” attributes for a large capacitor bank).  The autonumbering facility in gschem can be accessed with <strong>Attributes→Autonumber Text</strong>.
</p>

<p>
The “Autonumber text” window has two sections:
</p>
<ul>
<li class="level1"><div class="li"> The “Scope” section, at the top, is used to specify which attributes should be autonumbered.</div>
</li>
<li class="level1"><div class="li"> The “Options” section below controls how the numbering is carried out.</div>
</li>
</ul>

</div>
<!-- EDIT2 SECTION "Autonumbering" [109-661] -->
<h3 class="sectionedit3"><a name="choosing_attributes_to_number" id="choosing_attributes_to_number">Choosing attributes to number</a></h3>
<div class="level3">

<p>
In the “Search for” field, you should enter the attribute pattern to search for. You can enter <em>wildcards</em> here: ”<code>*</code>” matches any number of characters, and ”<code>?</code>” matches any single character.  For example, if you enter ”<code>refdes=X*</code>”, it will match components named ”<code>X1</code>”, ”<code>X40</code>”, ”<code>X302</code>”, etc.
</p>

<p>
The “Autonumber text in” menu controls where autonumbering looks for attributes to modify.  If “Selected objects” is chosen, only the objects that are currently <a href="geda-gschem_ug-selecting.html" class="wikilink1" title="geda-gschem_ug-selecting.html">selected</a> will be changed; with “Current page”, the whole page will be autonumbered.  If “Whole hierarchy” is chosen, all open pages will be renumbered.
</p>

<p>
If some numbers are already in use, autonumbering will skip them.  You can control where autonumbering looks for numbers to skip using the “Skip numbers found in” menu, which has the same options as the “Autonumber text in” menu described above.
</p>

<p>
If “Overwrite existing numbers” is enabled, all attributes found that match the pattern given in the “Search for” field will be renumbered; otherwise, only those that aren&#039;t already numbered will be changed.
</p>

</div>
<!-- EDIT3 SECTION "Choosing attributes to number" [662-1799] -->
<h3 class="sectionedit4"><a name="controlling_number_assignment" id="controlling_number_assignment">Controlling number assignment</a></h3>
<div class="level3">

<p>
The “Starting number” sets the first number that autonumbering will try to assign.  For example, to renumber a page with component numbers <code>U100</code>, <code>R101</code>, etc., set the “Starting number” to 100. The “Sort order” controls what order autonumbering assigns numbers.
</p>

<p>
If the “Remove numbers” option is enabled, then attributes have their numbers reset to ”<code>?</code>” (for example, ”<code>R10</code>” becomes ”<code>R?</code>”).
</p>

</div>
<!-- EDIT4 SECTION "Controlling number assignment" [1800-] --></div>
</body>
</html>
